package de.ubschmidt.capi.examples.info;

import de.ubschmidt.capi.CapiProfile;
import de.ubschmidt.capi.RCapi;
import org.capi.capi20.Capi;
import org.capi.capi20.CapiException;

public class Main {

    public static void main(String[] args) throws CapiException {
        Capi capi = new RCapi("brick", 2662);
        
        System.out.println("Manufacturer: " + capi.getManufacturer(0));
        System.out.println("Serial number: " + capi.getSerialNumber(0));
        System.out.println("Version: " + capi.getVersion(0));
        System.out.println("Profile: " + new CapiProfile(capi.getProfile(0)));
    }

}
